package org.ns.socket.client;

import org.ns.socket.client.handler.SocketHandler;

import java.io.IOException;

public class SocketContext {
    SocketHandler socketHandler;

    public SocketContext(SocketHandler socketHandler) {
        this.socketHandler = socketHandler;
    }

    public void write(Object msg) {
        socketHandler.write(msg);
    }

    public void close() throws IOException {
        socketHandler.close();
    }
}
